<?php if(!defined('BASEPATH'))exit('No direct script access allowed'); ?>
<?php $this->load->view('admin/global/header'); ?>
<?php $this->load->view('admin/global/left'); ?>
<table cellpadding="0" cellspacing="0">
    <tr>
        <td class="title"><?php echo lang('DETAIL').': '.lang('CONTACT'); ?></td>
    </tr>
    <?php if(isset($denied)){ ?>
    <tr>
        <td class="bar">
            <div class="error"><?php echo lang('DENIED'); ?></div>
            <meta http-equiv="refresh" content="5; <?php echo base_url().ADMIN_PATH; ?>" />
        </td>
    </tr>
    <?php }else{ ?>
    <?php echo Modules::run('admin/bar_module/index', $buttons); ?>
    <tr>
        <td valign="top">
            <table class="detail" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="label"><?php echo lang('TITLE'); ?>:</td>
                    <td><?php echo $contact->conTitle; ?></td>
                </tr>
                <tr class="bgColor">
                    <td class="label"><?php echo lang('CONTACTER'); ?>:</td>
                    <td><?php echo $contact->conFullname; ?></td>
                </tr>
                <tr>
                    <td class="label"><?php echo lang('EMAIL'); ?>:</td>
                    <td>
                        <a href="mailto:<?php echo $contact->conEmail; ?>" title="<?php echo $contact->conEmail; ?>">
                            <?php echo $contact->conEmail; ?>
                        </a>
                    </td>
                </tr>
                <tr class="bgColor">
                    <td class="label"><?php echo lang('ADDRESS'); ?>:</td>
                    <td><?php if(trim($contact->conAddress) != ''){echo $contact->conAddress;}else{echo '<span class="red">'.lang('NONE').'</span>';} ?></td>
                </tr>
                <tr>
                    <td class="label"><?php echo lang('TEL'); ?>:</td>
                    <td><?php if(trim($contact->conPhone) != ''){echo $contact->conPhone;}else{echo '<span class="red">'.lang('NONE').'</span>';} ?></td>
                </tr>
                <tr class="bgColor">
                    <td class="label"><?php echo lang('POSITION_CONTACT'); ?>:</td>
                    <td>
                        <?php if((int)$contact->conPosition == 1){ ?>
                        <span class="blue"><b><?php echo lang('BUSINESS'); ?></b></span>
                        <?php }else{ ?>
                        <span class="green"><b><?php echo lang('TECH'); ?></b></span>
                        <?php } ?>
                    </td>
                </tr>
                <tr>
                    <td class="label"><?php echo lang('CONTACT_DATE'); ?>:</td>
                    <td><?php echo date_convert($contact->conPostDate); ?></td>
                </tr>
                <tr class="bgColor">
                    <td class="label"><?php echo lang('DETAIL'); ?>:</td>
                    <td><?php echo nl2br($contact->conDetail); ?></td>
                </tr>
            </table>
        </td>
    </tr>
    <?php } ?>
</table>
<?php $this->load->view('admin/global/right'); ?>
<?php $this->load->view('admin/global/footer'); ?>